package com.liu.entity;

import cn.hutool.core.annotation.Alias;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class Area {
    @TableId(type = IdType.AUTO)
    @Alias("ID")
    private Integer id;
    @Alias("名称")
    private String city;
    @Alias("省份")
    private Integer proId;
    private Province province;
    //医院类 一对多  一个地区对应多个医院
    private List<Hospital> hospitalList;
}
